<?php

class Base_Controller extends Controller {

    /**
     * Catch-all method for requests that can't be matched.
     *
     * @param  string    $method
     * @param  array     $parameters
     * @return Response
     */
    public function __call($method, $parameters)
    {
        return Response::error('404');
    }

    protected static function toArray(Array $array)
    {
        $temp = array();
        foreach($array as $ar) {
            $temp[] = $ar->to_array();
        }
        return $temp;
    }
}